public class PrintInfoThread extends Thread {

    @Override
    public void run() {
//        synchronized (Car.getParkingLot()) {
            while (true) {
                Car.getParkingLot().printInfo();
                try {
                    sleep(2000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
//            }
        }
    }
}
